package com.aliwo.bean;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author xuyayuan
 * @description TODO
 * @date 2021/8/29 10:47
 */
public class TestBeanCycle {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-cfg.xml");
        JuiceMaker2 juiceMaker2 = (JuiceMaker2) applicationContext.getBean("juiceMaker2");
        System.out.println(juiceMaker2.makeJuice());
        applicationContext.close();
    }
}
